import React, { Component } from 'react'
import UserCenter from './UserCenter/index'
import UserHistory from './UserHistory'
import MyCollections from './MyCollections'
import Comment from './Comment'
export default class Usermiddleware extends Component {
    render() {
        const { set } = this.props
        // console.log(set)
        if (set === '用户中心') return (<UserCenter set={set} />)
        if (set === '历史记录') return (<UserHistory set={set} />)
        if (set === '我的收藏') return (<MyCollections set={set} />)
        if (set === '评论列表') return (<Comment set={set} />)
        return (
            <UserCenter set={set} />
        )
    }
}
